package pattern.factory.general;

public class Factory {
	public Sender createSender(String type) 
	{
		if("mail".equals(type))
			return new MailSender();
		else if("sms".equals(type))
			return new SMSSender();
		return null;
	}
}
